package com.wish.blessingroad.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 奖励记录
 * </p>
 *
 * @author dhc
 * @since 2019-02-18
 */
@Data
@Accessors(chain = true)
@TableName("rewards")
public class Rewards extends Model<Rewards> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 奖励类型
     * 1：排行    2：邀请
     */
    private Integer type;

    /**
     * 奖励描述
     */
    private String content;


    /**
     * 创建日期
     */
    private String dateTime;


    /**指定主键*/
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String TYPE = "type";

    public static final String CONTENT = "content";

    public static final String DATE_TIME = "date_time";

}
